import click
from tools.cmd.cut import cut
from tools.cmd.gen import gen


@click.group(help="""
You can set the environment SPLITTER_SLICE_REPO to point to your fork.
(SPLITTER_SLICE_REPO="https://gitee.com/openeuler/slice-releases.git")
""")
def entrance():
    pass

def _add_commands():
    # Unified interface for extension.
    entrance.add_command(cut)
    entrance.add_command(gen)

def main():
    _add_commands()
    entrance()


if __name__ == "__main__":
    main()
